﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Models;

namespace BLL
{
    public class CommentsManage
    {
        //有图新增
        public static bool AddimgComments(Comments cm)
        {
            return CommentsService.AddimgComments(cm);
        }
        //无图新增
        public static bool AddComments(Comments cm)
        {
            return CommentsService.AddComments(cm);
        }
        //删除
        public static bool DeleComments(int id)
        {
            return CommentsService.DeleComments(id);
        }
        //删除指定游戏id评论
        public static bool DeleGmIdComments(int id)
        {
            return CommentsService.DeleGmIdComments(id);
        }
        //删除指定用户评论
        public static bool DeleUsidComments(int id)
        {
            return CommentsService.DeleUsidComments(id);
        }
        //修改指定全部内容
        public static bool UpdaComments(Comments cm)
        {
            return CommentsService.UpdaComments(cm);
        }
        //查询所有信息
        public static List<Comments> SeleAllComments()
        {
            return CommentsService.SeleAllComments();
        }
        //查游戏名信息
        public static List<Comments> SeleLikeGameNameComments(string name)
        {
            return CommentsService.SeleLikeGameNameComments(name);
        }
        //游戏id查询信息
        public static List<Comments> SeleGameIdComments(int gmid)
        {
            return CommentsService.SeleGameIdComments(gmid);
        }
        //查指定定id信息
        public static List<Comments> SeleIdComments(int id)
        {
            return CommentsService.SeleIdComments(id);
        }

        //查指定用户id信息
        public static List<Comments> SeleUsIdComments(int id)
        {
            return CommentsService.SeleUsIdComments(id);
        }

    }
}
